<script>
	//引入推送js
	//#ifdef APP-PLUS  
	import plusListener from '@/utils/unipush-listener.js';
	// #endif 
	export default {
		mapkey: "fad2d687dbc47bedc02aa3ce8f3d1542",
		mapwebkey: "f2ede9a22d5f97e0e2eeb8a03338d733",
		globalData: {},
		onLaunch: function(options) {
			let _this = this
			//#ifdef APP-PLUS  
			console.log(1111);
			wx.setStorageSync("is_openScreen", true)
			// console.log(plus.runtime.appid, plus.runtime.version, plus.os.name)
			var req = { //升级检测数据
				"appid": plus.runtime.appid,
				"version": plus.runtime.version,
				"name": plus.os.name
			};
			wx.setStorageSync("req", req)
			
			// 信息推送
			// 开启推送
			let platform = uni.getSystemInfoSync().platform
			console.log(platform,"安装")
			if (platform == 'android') {
				plusListener.getClientInfoLoop(); // 循环获取cid
				plus.runtime.setBadgeNumber(0); // 角标清空
				plusListener.pushListener(); // 监听通知栏信息
			}
			// #endif 
		},
		onShow: function() {},
		onHide: function() {},
		methods: {}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import 'static/icon/iconfont.css';
	@import 'static/icon/icons.css';
	@import 'static/css/common.css';

	view,
	text,
	input {
		box-sizing: border-box;
		word-break: break-all;
	}

	img {
		max-width: 100%;
		height: auto;
	}

	/*实名标签*/
	.shiming {
		width: 30rpx;
		height: 30rpx;
		border-radius: 3rpx;
		background: #FFA811;
		text-align: center;
		line-height: 30rpx;
		color: #fff;
		font-size: 20rpx;
		margin-left: 12rpx;
	}

	/*企业标签*/
	.qiye {
		width: 30rpx;
		height: 30rpx;
		border-radius: 3rpx;
		background: #11B9FF;
		text-align: center;
		line-height: 30rpx;
		color: #fff;
		font-size: 20rpx;
		margin-left: 6rpx;
	}

	/*一排省略号*/
	.clamp1 {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	/*两排省略号*/
	.clamp2 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	::-webkit-scrollbar {
		display: none
	}

	.uParse {
		padding: 0 30rpx;
	}
</style>
